﻿<%@ Page Language="C#" MasterPageFile="~/web/pages/NhaTuyenDung.master" AutoEventWireup="true" 
CodeFile="nhatuyendung_taikhoan.aspx.cs" Inherits="web_nhatuyendung_taikhoan" Title="Thay doi thong tin tai khoan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" language="javascript" >
         function LoadListBox(){
                var list_id = "";
               var optionsSel = document.getElementById('ctl00_ContentPlaceHolder1_list_nganh_kd');
	            for (var i = 0; i < optionsSel.length; i++) {
                 list_id = list_id + optionsSel.options[i].value + '#';
                 list_id = list_id + optionsSel.options[i].text + '#';
	            }
            $('#ctl00_ContentPlaceHolder1_list_nganh_kd_hidden').val(list_id);
           // alert(list_id);
         }
    
    </script>

<div class="vl_left_news_main_tt">
        Xin chào : <%=Session["NTDtenNTD"].ToString() %>.
    </div><h4>
                    <span class="ui-icon ui-icon-arrowthickstop-1-w" style="float: left; margin-right: 0.3em;">
                    </span><a href="nhatuyendung_home.aspx">Quay lại 
                    </a> 
                    &nbsp;&nbsp;&nbsp;
        <asp:Button ID="btn_dang_xuat" runat="server" CssClass="ui-corner-all ui-state-default"
                            Text="Đăng Xuất" OnClick="btn_dang_xuat_Click" CausesValidation="False" />
                          &nbsp;&nbsp;&nbsp;    
                <input class="ui-corner-all ui-state-default" type="button" value="Đổi Mật Khẩu" onclick="$('#thaydoi_mat_khau').toggle('fast')" />            
                            </h4>
 <div style="clear:both"></div>
        <div style="width:99%; float: left;padding:1px; display:none" class="ui-widget ui-widget-content ui-corner-all "id="thaydoi_mat_khau">
            
            <div style="height: 20px; padding-top: 5px; padding-left: 20px;"  class="ui-widget-header ui-corner-all ">
                Thay đổi Mật Khẩu
            </div>
            <div style="padding: 5px;width:99%;" align="center"   >
                <table>
                    <tr>
                        <td style="text-align: left;">
                            Tài khoản</td>
                        <td style="width: 138px; height: 15px">
                        <b><%=NTDtaikhoan%> </b>
                        </td>
                        <td style="width: 64px; height: 15px">
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: left;">
                            Mật khẩu cũ</td>
                        <td style="width: 138px">
                            <asp:TextBox ID="txt_mk_cu" runat="server" TextMode="Password"></asp:TextBox></td>
                        <td style="width: 64px">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_mk_cu"
                                ErrorMessage="Phải nhập mật khẩu cũ" ValidationGroup="Pass"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td style="text-align: left;">
                            Mật khẩu mới</td>
                        <td style="width: 138px; height: 24px;">
                            <asp:TextBox ID="txt_mk_moi" runat="server" TextMode="Password"></asp:TextBox></td>
                        <td style="width: 64px; height: 24px;">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_mk_moi"
                                ErrorMessage="Phải nhập" ValidationGroup="Pass"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td style="text-align: left;">
                            Nhập lại mật khẩu mới</td>
                        <td style="width: 138px; height: 24px">
                            <asp:TextBox ID="txt_mk_moi_re" runat="server" TextMode="Password"></asp:TextBox></td>
                        <td style="width: 64px; height: 24px">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_mk_moi_re"
                                ErrorMessage="phải nhập" ValidationGroup="Pass"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txt_mk_moi"
                                ControlToValidate="txt_mk_moi_re" ErrorMessage="Mật khẩu mới không khớp" ValidationGroup="Pass"></asp:CompareValidator></td>
                    </tr>
                    <tr>
                        <td style="text-align: left;">
                        </td>
                        <td style="width: 138px">
                            <asp:Button ID="btn_editPass" runat="server" CssClass="ui-corner-all ui-state-default" Text="Xác Nhận Thay Đổi" Width="139px" OnClick="btn_editPass_Click" Height="25px" ValidationGroup="Pass" /></td>
                        <td style="width: 64px">
                        </td>
                    </tr>
                </table>
                
                   
                
                 
            </div>
        </div>
        <div style="clear:both"></div>
        <br />
           <div style="width:99%; float: left;padding:1px " class="ui-widget ui-widget-content ui-corner-all ">
            
            <div style="height: 20px; padding-top: 5px; padding-left: 20px;" class="ui-widget-header ui-corner-all ">
                Thông tin cơ bản</div>
            <div style="padding: 5px;width:99%" align="center" >
                
                    <div>
                <h4>
                    <span class="ui-icon ui-icon-power" style="float: left; margin-right: 0.3em;"></span>
                    Thông tin Chi tiết Doanh Nghiệp
                </h4>
                
                    <table>
                        <tr>
                            <td align="left" style="width: 139px">
                                Tên Tổ chức - Doanh Nghiệp</td>
                            <td align="left" style="width: 255px">
                                <asp:TextBox ID="TextBox1" runat="server" Width="226px"></asp:TextBox></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Tên viết tắt</td>
                            <td align="left" style="width: 255px">
                                <asp:TextBox ID="txt_tenviettat" runat="server" Width="226px"></asp:TextBox></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 15px">
                                Logo
                            </td>
                            <td align="left" style="width: 255px; height: 15px">
                              <asp:Image  ID="txt_hinhanh" runat="server" Height="110px" /> <br />  <asp:FileUpload ID="txt_hinh_anh" runat="server" Width="230px" /></td>
                            <td style="width: 36px; height: 15px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 15px">
                                Năm thành lập</td>
                            <td align="left" style="width: 255px; height: 15px">
                                <asp:TextBox ID="txt_nam_thanh_lap" runat="server" Width="62px"></asp:TextBox></td>
                            <td style="width: 36px; height: 15px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 15px">
                                Quốc Gia</td>
                            <td align="left" style="width: 255px; height: 15px">
                                <asp:DropDownList ID="cbb_quoc_gia" runat="server" Width="132px">
                                </asp:DropDownList></td>
                            <td style="width: 36px; height: 15px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Mã số thuế</td>
                            <td align="left" style="width: 255px">
                                <asp:TextBox ID="txt_ma_so_thue" runat="server"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="*"
                                    ValidationExpression="\d{10}" ControlToValidate="txt_ma_so_thue" ValidationGroup="Edit"></asp:RegularExpressionValidator></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Địa chỉ chi tiết</td>
                            <td align="left" style="width: 255px">
                                <asp:TextBox ID="txt_dia_chi_chi_tiet" runat="server" Width="226px"></asp:TextBox></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 11px;">
                                Địa chỉ (T-H-X)</td>
                            <td align="left" style="width: 255px; height: 11px;">
                                <asp:TextBox ID="txt_diachi_thx" runat="server" Width="226px" Style="float: left;"></asp:TextBox>
                                <a href="javascript:void(0);" id="dialog_diachi"><span class="ui-icon ui-icon-zoomin"></span></a>
                                <asp:HiddenField ID="txt_dia_chi_THX_hidden" runat="server" />
                            </td>
                            <td style="width: 36px; height: 11px;">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 24px;">
                                Điện Thoại</td>
                            <td align="left" style="width: 255px; height: 24px;">
                                <asp:TextBox ID="txt_dien_thoai" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txt_dien_thoai"
                                    ErrorMessage="*" ValidationGroup="Edit"></asp:RequiredFieldValidator></td>
                            <td style="width: 36px; height: 24px;">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Fax</td>
                            <td align="left" style="width: 255px">
                                <asp:TextBox ID="txt_fax" runat="server"></asp:TextBox></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 15px">
                                Online Yahoo</td>
                            <td align="left" style="width: 255px; height: 15px">
                                <asp:TextBox ID="txt_yahoo" runat="server"></asp:TextBox></td>
                            <td style="width: 36px; height: 15px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 15px">
                                Online Skyper</td>
                            <td align="left" style="width: 255px; height: 15px">
                                <asp:TextBox ID="txt_skype" runat="server"></asp:TextBox></td>
                            <td style="width: 36px; height: 15px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px; height: 15px">
                                Website</td>
                            <td align="left" style="width: 255px; height: 15px">
                                <asp:TextBox ID="txt_website" runat="server" Width="226px"></asp:TextBox></td>
                            <td style="width: 36px; height: 15px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Người đại diện</td>
                            <td align="left" style="width: 255px">
                                <asp:TextBox ID="txt_nguoi_dai_dien" runat="server" Width="226px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txt_nguoi_dai_dien"
                                    ErrorMessage="*" ValidationGroup="Edit"></asp:RequiredFieldValidator></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Chức vụ</td>
                            <td align="left" style="width: 255px">
                                <asp:TextBox ID="txt_chuc_vu" runat="server" Width="226px"></asp:TextBox></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 139px; height: 12px;" align="left">
                                Kiểu sở hữu</td>
                            <td style="width: 255px; height: 12px;" align="left">
                                <asp:DropDownList ID="cbb_kieu_so_huu" runat="server" Width="232px">
                                </asp:DropDownList></td>
                            <td style="width: 36px; height: 12px;">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 139px" align="left">
                                Lĩnh vực hoạt động</td>
                            <td style="width: 255px" align="left">
                                <asp:ListBox ID="list_nganh_kd" runat="server" Style="float: left;" Width="232px"  EnableViewState="true" CausesValidation="True" SelectionMode="Multiple"></asp:ListBox>
                                <a  href="javascript:void(0);" id="dialog_list_nganhnghe"><span class="ui-icon ui-icon-circle-plus"></span></a>
                                <a  href="javascript:void(0);" id="dialog_list_nganhnghe_remove"><span class="ui-icon  ui-icon-circle-minus"></span></a>
                                <asp:HiddenField ID="list_nganh_kd_hidden" runat="server" />
                            </td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 139px" align="left">
                                Số lao động</td>
                            <td style="width: 255px" align="left">
                                <asp:TextBox ID="txt_so_lao_dong" runat="server" Width="62px"></asp:TextBox></td>
                            <td style="width: 36px">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Khu công nghiệp</td>
                            <td align="left" style="width: 255px">
                                <asp:DropDownList ID="cbb_khu_cn" runat="server" Width="232px">
                                </asp:DropDownList></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 139px">
                                Giới thiệu chung</td>
                            <td align="left" style="width: 255px">
                                <asp:TextBox ID="TextBox2" runat="server" Height="154px" TextMode="MultiLine" Width="286px"></asp:TextBox></td>
                            <td style="width: 36px">
                            </td>
                        </tr>
                    </table>
                    <br />
                    <asp:Button ID="Button1" CssClass="ui-corner-all ui-state-default" runat="server" OnClientClick="LoadListBox();"
                        Text="Cập Nhập Thông Tin" Height="27px" OnClick="Button1_Click" Width="156px" ValidationGroup="Edit" />
                    <br />
                    <br />
               
                
           
       
    </div>
    <%--Dialog Setup--%>
    <div>
        <div id="dialog" class="ui-dialog-content ui-widget-content" style="height: auto;
            min-height: 61px; width: auto;">
            <br />
            Tỉnh / TP
            <asp:DropDownList ID="cbb_tinhthanh" runat="server">
               
            </asp:DropDownList>
            Quận / Huyện <span id="ajax_qh">
                <asp:DropDownList ID="cbb_quanhuyen" runat="server" onclick="loadPX()">
                </asp:DropDownList>
            </span>Phường / Xã <span id="ajax_px">
                <asp:DropDownList ID="cbb_phuongxa" runat="server">
                </asp:DropDownList>
            </span>
        </div>
        <div id="dialog2" class="ui-dialog-content ui-widget-content" style="height: auto;
            min-height: 61px;max-height:400px;overflow: auto; overflow-x: none; width: auto;text-align:left;">
        </div>
        
    </div>
                
                 
            </div>
        </div>
       
      

</asp:Content>

